home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Freeware / Gmail Manager 0.5.1 / gmanager051.xpi / defaults / transforms / prefs-0.5.xsl
Encoding:
Extensible Markup Language  |  2006-08-28  |  911 b   |  37 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.     version="1.0">
  5.     
  6.     <xsl:output indent="yes" method="xml"/>
  7.     
  8.     <xsl:template match="/">
  9.         <xsl:apply-templates/>
  10.     </xsl:template>
  11.     
  12.     <xsl:template match="gmanager">
  13.         <prefs version="0.5.1">
  14.             <xsl:apply-templates/>
  15.         </prefs>
  16.     </xsl:template>
  17.     
  18.     <xsl:template match="account">
  19.         <account>
  20.             <xsl:copy-of select="@*"/>
  21.             
  22.             <xsl:apply-templates select="pref[not(@id = 'toolbar-tab-location')]"/>
  23.         </account>
  24.     </xsl:template>
  25.     
  26.     <xsl:template match="pref">
  27.         <pref>
  28.             <xsl:copy-of select="@*"/>
  29.             
  30.             <xsl:if test="(@id = 'toolbar-left-click' or @id = 'toolbar-middle-click') and @value = 4">
  31.                 <xsl:attribute name="value">
  32.                     <xsl:value-of select="//pref[@id = 'toolbar-tab-location']/@value + 5"/>
  33.                 </xsl:attribute>
  34.             </xsl:if>
  35.         </pref>
  36.     </xsl:template>
  37. </xsl:stylesheet>